home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '88 / Hacks '88 / DiskSwitch ƒ / DiskSwitch.doc next >
Encoding:
Text File  |  1988-05-27  |  1.5 KB  |  50 lines  |  [TEXT/MPS ]

  1. DiskSwitch
  2. 5/27/88
  3.  
  4. DiskSwitch is an INIT file (Startup document) that allows
  5. Command-Shift-0/1/2 to eject the appropriate diskette
  6. during a disk switch dialog.  This is a partial solution
  7. to the problem of the system asking you to insert 2
  8. different disks in the same drive, when you have another
  9. floppy drive available.
  10.  
  11. Simply place this file in you SystemFolder and reboot.
  12. It installs itself silently.  If it can be installed then
  13. it will beep twice during booting.
  14.  
  15. From then on, you should be able to type Command-Shift-0/1/2
  16. during a disk switch dialog to eject a floppy disk.
  17.  
  18. As always, send comments to me.
  19.  
  20. Larry Rosenstein
  21. 20525 Mariani M/S 27-AJ
  22. Cupertino, CA 95014
  23.  
  24. UUCP:        {sun, voder}!apple!lsr
  25. CSNet:        lsr@Apple.COM
  26. AppleLink:    Rosenstein1
  27.  
  28.  
  29. History:
  30.  
  31. 05/27/88    version 1.0a1
  32.  
  33. Technical Info:
  34.  
  35. The code to handle Command-Shift-0/1/2 was added to the ROM for
  36. the MacPlus, at the same time as the code to handle Command-.
  37. (to abort the dialog).  Due to a bug, the ROM checks for an
  38. ASCII code of $00, $01, or $02, instead of $30, $31, and $32.
  39. (Note that users with a Mac II or Mac SE can type Command-Shift-
  40. Control-@/A/B to generate the codes the ROM expects!)
  41.  
  42. The INIT patches PostEvent and checks for Command-Shift-0/1/2
  43. being posted.  If the disk switch dialog is up, it posts 
  44. the event normally, but then posts a key event with the ASCII
  45. code expected by the ROM.
  46.  
  47. I detect when we are in the disk switch dialog by patching
  48. SysError, which is how the dialog is drawn in the first place.
  49.  
  50.